package com.xmfh.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xmfh.wemedia.dto.VideoDTO;
import com.xmfh.wemedia.model.DdPublishLine;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2022-04-12
 */
@Mapper
public interface DdPublishLineMapper extends BaseMapper<DdPublishLine> {

    Integer insertNewPublishLine(VideoDTO videoDTO);

    enum flag {
        ARTICLE("article"),
        ALBUM("album"),
        MICRO("micro"),
        VIDEO("video"),
        QUESTION("question");

        String flagSelect;

        flag(String flagSelect) {
            this.flagSelect = flagSelect;
        }

        public String getFlagSelect() {
            return flagSelect;
        }
    }
}
